package com.atguigu.aop.annotation.utils;

import java.util.Arrays;

/**
 * Date:2020/9/25
 * Author:ybc
 * Description:
 */
public class LoggerUtils {

    public static void showMethodNameAndArgs(String methodName, Object[] args){
        System.out.println("methodName:"+methodName+",args:"+ Arrays.toString(args));
    }

    public static void showMethodNameAndResult(String methodName, Object result){
        System.out.println("methodName:"+methodName+",result:"+ result);
    }

    public static void showMethodNameAndExceptionMessage(String methodName, String message){
        System.out.println("methodName:"+methodName+",exceptionMessage:"+ message);
    }

}
